#include "tracksegment.h"

TrackSegment::TrackSegment(SegmentType type, QGraphicsItem* parent)
    : QGraphicsPathItem(parent)
    , m_type(type)
    , m_trackWidth(50.0)
    , m_color(Qt::darkGray)
{
    setPen(QPen(m_color, m_trackWidth));
    setBrush(Qt::NoBrush);
    setAcceptHoverEvents(true);
}
